package com.sun.showcase.client.domain.mall;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

public class SkuAttribute implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
    /**
     * ID       db_column: id 
     */	
	private String id;
    /**
     * 值       db_column: value
     */
	private String value;
    /**
     * 图片       db_column: pic
     */
	private String pic;
    /**
     * 序号       db_column: order_num
     */
	private Integer orderNum;
    /**
     * 商品id       db_column: goods_id
     */
	private String goodsId;
    /**
     * 商品名       db_column: goods_name
     */
	private String goodsName;
	//columns END

	public SkuAttribute(){
	}

	public SkuAttribute(
		String id
	){
		this.id = id;
	}

	public void setId(String value) {
		this.id = value;
	}

	public String getId() {
		return this.id;
	}
	public void setValue(String value) {
		this.value = value;
	}

	public String getValue() {
		return this.value;
	}
	public void setPic(String value) {
		this.pic = value;
	}

	public String getPic() {
		return this.pic;
	}
	public void setOrderNum(Integer value) {
		this.orderNum = value;
	}

	public Integer getOrderNum() {
		return this.orderNum;
	}
	public void setGoodsId(String value) {
		this.goodsId = value;
	}

	public String getGoodsId() {
		return this.goodsId;
	}
	public void setGoodsName(String value) {
		this.goodsName = value;
	}

	public String getGoodsName() {
		return this.goodsName;
	}

	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof SkuAttribute == false) return false;
		if(this == obj) return true;
		SkuAttribute other = (SkuAttribute)obj;
		return new EqualsBuilder()
			.append(getId(),other.getId())
			.isEquals();
	}
}

